
public class Semaphore {

static int num_inst; 
	
	int id;
	
	public Semaphore() {
		
		id=num_inst;
		num_inst++;
	}
	
	public int getid() { return this.id;}
	
public String toString() {
		
		String s = new String("Semaphore@"+id);
		
		return s;
	}
	
}
